Turn on case-sensitivity in replacements
authorjustbur <justin@burkett.cc>
Tue, 17 Nov 2015 02:57:59 +0000 (21:57 -0500)
committerjustbur <justin@burkett.cc>
Tue, 17 Nov 2015 02:57:59 +0000 (21:57 -0500)
Should avoid situations like #84

which-key.el

index 93cda2c8e258b80d2400d9cdd0a73560ed9eaefb..1243bc0280621a399503fbd59abb896573a00077 100644 (file)
@@ -1080,7 +1080,8 @@ to replace and the cdr is the replacement text.  Unless LITERAL is
 non-nil regexp is used in the replacements.  Whether or not a
 replacement occurs return the new STRING."
   (save-match-data
-    (let ((new-string string))
+    (let ((new-string string)
+          case-fold-search)
       (dolist (repl repl-alist)
         (when (string-match (car repl) new-string)
           (setq new-string